import request from '@/utils/request'
import { getToken } from '@/utils/auth'

export function addLevel(level) {
  return request({
    url: '/AgentApplication/',
    method: 'post',
    data: {
      agentApplicationFile: level.agentApplicationFile,
      agentApplicationLevel: level.agentApplicationLevel,
      agentApplicationReason: level.agentApplicationReason,
      agentApplicationTitle: level.agentApplicationTitle,
      agentApplicationUserId: getToken(),
      agentApplicationStatus: 0
    }
  })
}
